package cn.edu.swu.ranna.auth;

public class User {
    private int id;
    private String name;
    private String passwd;
    private String role;

    public User(){}

    public  User(int id, String name, String passwd, String role){
        this.id=id;
        this.name=name;
        this.passwd=passwd;
        this.role=role;
    }

    public  User(String name, String passwd, String role){
        this.name=name;
        this.passwd=passwd;
        this.role=role;
    }

    public int getId() {
        return id;
    }

    public void setId(int id){
        this.id=id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name){
        this.name=name;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd){
        this.passwd=passwd;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role){
        this.role=role;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", passwd='" + passwd + '\'' +
                ", role='" + role + '\'' +
                '}';
    }
}
